<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../../css/Nc2.css">
</head>
<body>
<div id="div1" class="d1">
  <label id="lb" onclick="lb">Label</label>
</div><br>
<div id="div2" class="d1">
  <form action="">
    <input type="text" id="userName">
    <input type="password" id="passWord">
    <button id="btn">登录</button>
  </form>
</div><br>

<!--innerHTML-->
<div id="div3" class="d1">
    innerHTML现在是原文本(点击)
</div><br>
<!--innerTEXT-->
<div id="div4" class="d1">
    innerTEXT现在是原文本(点击)
</div><br>
<!--textContent-->
<div id="div5" class="d1">
    textContent现在是<br>原文本(点击)
</div><br>

<hr>以下是元素样式操作<br><hr>
<a id="a1">通过style属性操作(点击)</a>
<hr>以下是className<br><hr>
<span id="sp1">通过className属性操作(点击)</span>
<script src="../../javascript/Class/new/Nc2.js"></script>
</body>
</html>